﻿/**
 * Copyright (C) 2011 original author and authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AopAlliance.Intercept;
using System.Reflection;

namespace NGuice.Inject.Spi
{
    //complete!
    /// <summary>
    /// 一个具体类的构造器的绑定。为了解析注入，一个实例将调用构造器实例化
    /// </summary>
    public interface IConstructorBinding<T>: IBinding<T>, IHasDependencies
    {
        /// <summary>
        /// 获取此绑定注入的构造器
        /// </summary>
        InjectionPoint Constructor
        {
            get;
        }

        /// <summary>
        /// 获取所有实例方法和域、属性的注入点。返回的集合的顺序：首先是域、然后是属性、最后方法。在
        /// 域中，超类域在子类域之前...
        /// </summary>
        ISet<InjectionPoint> InjectableMembers
        {
            get;
        }

        /*if[AOP]*/
        /// <summary>
        /// 获取应用到每个方法的拦截器，按照他们被应用的顺序
        /// </summary>
        IDictionary<MethodInfo, IList<IMethodInterceptor>> MethodInterceptors
        {
            get;
        }
        /*end[AOP]*/
    }
}
